<div id="container">	
<?php if(!empty($news_index)){?>
<div id="bcrum">
<?php echo $this->element('breadcrumb');
if(isset($news_index)){
	$get_category = $news_index[0]['Category'];
	echo ' of '.$get_category['name'];
}
?></div>
	<?php foreach ($news_index as $news1):
	?>	
		
	<div class="post-<?php echo $news1['News']['id'];?> post type-post status-publish format-standard hentry category-nfl entry" id="post-<?php echo $news1['News']['id'];?>">
		<div class="archive_postheader border_bottom_20">
			<h2 class="archive_title">
				<a title="<?php echo $news1['News']['name'];?>" rel="bookmark" href="<?php echo $this->webroot.'news/show/'.$news1['News']['id'];?>">
				<?php echo $news1['News']['name'];?></a>
			</h2>
			
			<span class="entry_date"><?php echo date("F j, Y",strtotime($news1['News']['modified']));?></span>
			<span class="entry_comment"><a title="Comment on <?php echo $news1['News']['name'];?>" href="<?php echo $this->webroot.'news/show/'.$news1['News']['id'];?>/#respond">
			<?php if(isset($news1['Comment'])){ echo count($news1['Comment']);}else{ echo 'No';}?>&nbsp;Comment</a></span>
			
			<div class="clear"></div>
		</div>
		
		<img alt="" class="alignleft" src="<?php echo $this->webroot;?>timthumb.php?src=<?php echo $news1['News']['image'];?>&amp;q=90&amp;w=190&amp;h=100&amp;zc=1">
		<p><?php echo substr($news1['News']['description'],0,500).'...';?></p>
		<div class="clear"></div>

		<span class="read_on">
			<a title="Permalink to <?php echo $news1['News']['name'];?>" href="<?php echo $this->webroot.'news/show/'.$news1['News']['id'];?>">Continue reading …</a>		</span>
	</div><!-- /cat_post -->
	
	<?php endforeach ;?>

<div class="numbered-pagination">
		<span>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total', true)
	));
	?>	</span>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
<div class="clear"></div></div>	

<?php }else{?>	
	<p class="notice">
	<strong>Notice: </strong>
	Chưa có bài viết trong chuyên mục này</p>
<?php }?>	
	</div>
	<?php echo $this->element('news_sidebar');?>